package com.neuedu.corejava.ch5.game;

public class Xiyouji {

	private String weapon;
	private String zdl;
	private String nl;
	private String name;

	public Xiyouji() {
		super();
	}

	public Xiyouji(String weapon, String zdl, String nl, String name) {
		super();
		this.weapon = weapon;
		this.zdl = zdl;
		this.nl = nl;
		this.name = name;
	}

	public String getWeapon() {
		return weapon;
	}

	public void setWeapon(String weapon) {
		this.weapon = weapon;
	}

	public String getZdl() {
		return zdl;
	}

	public void setZdl(String zdl) {
		this.zdl = zdl;
	}

	public String getNl() {
		return nl;
	}

	public void setNl(String nl) {
		this.nl = nl;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void show1() {
		System.out.println(getName() + "武器：" + getWeapon() + ",战斗力：" + getZdl() + ",耐力：" + getNl());
	}

	public static void main(String[] args) {
		
		Xiyouji x1 = new Xiyouji();
		x1.setName("孙悟空      ");
		x1.setWeapon("金箍棒");
		x1.setZdl("五颗星");
		x1.setNl("五颗星");
		x1.show1();

		Xiyouji x2 = new Xiyouji();
		x1.setName("唐僧         ");
		x1.setWeapon("念经");
		x1.setZdl("0");
		x1.setNl("五颗星");
		x1.show1();

		Xiyouji x3 = new Xiyouji();
		x1.setName("猪八戒      ");
		x1.setWeapon("九齿钉耙");
		x1.setZdl("四颗星");
		x1.setNl("二颗星");
		x1.show1();

		Xiyouji x4 = new Xiyouji();
		x1.setName("沙僧         ");
		x1.setWeapon("月牙铲");
		x1.setZdl("三颗星");
		x1.setNl("四颗星");
		x1.show1();

	}

}
